﻿/*
 *Copyright (C), 2006-2009, Sunrise Tech. Co., Ltd.
 *SUNRISE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 * 
 * Created on 2007-11-29
 */
package com.mindao.app.survey.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.mindao.app.common.spring.model.BaseModel;

/**
 * 
 * 功能说明:访谈内容可选项配置
 * 
 * @author liguocai
 */
@Entity
@Table(name = "sv_survey_item_opt_conf")
public class SurveyItemOptionConf extends BaseModel implements Serializable  {
 

	// 问题选项
	private String name;
	
	//显示顺序
	private Integer orderBy;
	
	//选中后填写文本说明 ，如果SurveyItemConf是否是选择题并且可以填写文本说明=1时，文本关联的选择项
	private Integer option2Text;	
    
	//对应问题
	@ManyToOne(fetch = FetchType.EAGER)  
	@JoinColumn(name = "itemId", nullable = true)
	private SurveyItemConf surveyItemConf;	
	
	//图片
	private String image;

 

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getOrderBy() {
		return orderBy;
	}

	public void setOrderBy(Integer orderBy) {
		this.orderBy = orderBy;
	}

	public Integer getOption2Text() {
		return option2Text;
	}

	public void setOption2Text(Integer option2Text) {
		this.option2Text = option2Text;
	}

	public SurveyItemConf getSurveyItemConf() {
		return surveyItemConf;
	}

	public void setSurveyItemConf(SurveyItemConf surveyItemConf) {
		this.surveyItemConf = surveyItemConf;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}
	
 
	
 

 

}
